package cn.lili.modules.payment.mapper;

import cn.lili.modules.payment.entity.dos.WechatApplyment;
import cn.lili.modules.payment.entity.vo.WechatApplymentVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 微信进件
 *
 * @author Bulbasaur
 * @since 2022/10/19
 **/
public interface WechatApplymentMapper extends BaseMapper<WechatApplyment> {

    @Select("SELECT merchant_shortname,out_request_no,organization_type,sub_mchid,create_time,status,applyment_state_msg,error_message,sign_url" +
            " FROM li_wechat_applyment ${ew.customSqlSegment}")
    Page<WechatApplymentVO> wechatApplymentVOPage(Page<WechatApplyment> page, @Param(Constants.WRAPPER) Wrapper<WechatApplymentVO> queryWrapper);
}
